package com.qidian.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * @author 戴着假发的程序员
 */
public class QdPost implements Serializable {
    private static final long serialVersionUID = 759508430545541960L;
    
    private Long postId;
    
    private String postName;
    
    private String postDesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postCreateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postModifyTime;
    
    private Integer postStatus;

        
    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }
        
    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }
        
    public String getPostDesc() {
        return postDesc;
    }

    public void setPostDesc(String postDesc) {
        this.postDesc = postDesc;
    }
        
    public Date getPostCreateTime() {
        return postCreateTime;
    }

    public void setPostCreateTime(Date postCreateTime) {
        this.postCreateTime = postCreateTime;
    }
        
    public Date getPostModifyTime() {
        return postModifyTime;
    }

    public void setPostModifyTime(Date postModifyTime) {
        this.postModifyTime = postModifyTime;
    }
        
    public Integer getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(Integer postStatus) {
        this.postStatus = postStatus;
    }

    @Override
    public String toString(){
        return "QdPost {" +
            "postId : " + postId + ", " +
            "postName : " + postName + ", " +
            "postDesc : " + postDesc + ", " +
            "postCreateTime : " + postCreateTime + ", " +
            "postModifyTime : " + postModifyTime + ", " +
            "postStatus : " + postStatus + ", " +
        '}';
    }
}